package com.fcml.study.proxy.statical;

public class SingerProxy implements Sing {
    private Sing target;

    public SingerProxy(Sing sing) {
        this.target = sing;
    }

    @Override
    public void sing() {
        System.out.println("向观众问好");
        target.sing();
        System.out.println("谢谢大家");
    }
}
